/*
 * Copyright 2020, GeoSolutions Sas.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree.
 */

// **************
// Theme
// **************

#gn-components-theme(@theme-vars) {
    .gn-main-event-container {
        .color-var(@theme-vars[main-color]);
        .background-color-var(@theme-vars[main-bg]);
    }
}

// **************
// Layout
// **************

.gn-main-event-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-direction: column;
    z-index: 100;
}
.gn-main-event-content {
    position: relative;
    font-size: inherit;
}
.gn-main-loader {
    border-radius: 50%;
    width: 12em;
    height: 12em;
    box-sizing: border-box;
    border: 1em solid rgba(119,119,119, 0.2);
    border-left: 1em solid #777777;
    -webkit-animation: gn-main-loader-animation 1.1s infinite linear;
    animation: gn-main-loader-animation 1.1s infinite linear;
}
.gn-main-icon {
    font-size: 7rem;
}
.gn-main-event-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
    text-align: center;
    h1 {
        font-size: 2em;
    }
}
@-webkit-keyframes gn-main-loader-animation {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes gn-main-loader-animation {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
